# encoding: utf-8
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models

class Migration(SchemaMigration):

    def forwards(self, orm):
        
        # Adding model 'Section'
        db.create_table('core_section', (
            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('title', self.gf('django.db.models.fields.TextField')()),
            ('link_name', self.gf('django.db.models.fields.TextField')()),
        ))
        db.send_create_signal('core', ['Section'])

        # Adding model 'Content'
        db.create_table('core_content', (
            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('id_section', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['core.Section'])),
            ('title', self.gf('django.db.models.fields.TextField')()),
            ('content', self.gf('django.db.models.fields.TextField')()),
        ))
        db.send_create_signal('core', ['Content'])


    def backwards(self, orm):
        
        # Deleting model 'Section'
        db.delete_table('core_section')

        # Deleting model 'Content'
        db.delete_table('core_content')


    models = {
        'core.content': {
            'Meta': {'object_name': 'Content'},
            'content': ('django.db.models.fields.TextField', [], {}),
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'id_section': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['core.Section']"}),
            'title': ('django.db.models.fields.TextField', [], {})
        },
        'core.section': {
            'Meta': {'object_name': 'Section'},
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'link_name': ('django.db.models.fields.TextField', [], {}),
            'title': ('django.db.models.fields.TextField', [], {})
        }
    }

    complete_apps = ['core']
